commit | dc80bb2b8b477cbd32eb132e3ff667925f0f3418 | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@chromium.org> | Fri Oct 18 18:05:48 2019 |
committer | Mohamed Heikal <mheikal@chromium.org> | Fri Oct 18 18:05:48 2019 |
tree | f75f890a7767e491fab7e4a3cd9034c1ad548497 | |
parent | 889013cf7ab897706e0833b25be8d8775639f531 [diff] |
Only enable plugin for fishfood users In order to not have the first impressions of the plugin among the wider chromium dev base be bad, this CL only enables the plugin for a small subset of fishfood users. The plugin will become more widely available after some time in fishfood. Bug: 921090 Change-Id: I25134a8ffb62abcf4097861788b86bfe98f4f412
The plugin queries the android-binary-size trybot for the current patchset on Gerrit, and gets the binary_size_plugin
property. This property contains the metadata about the binary size metrics affected by the patchset in question. It then shows an inline table with the metric deltas + links to SuperSize output.
This plugin uses no config files since it only works with the android-binary-size trybot which only runs on the chromium repo CQ making this not compatible with any other host. If you want this to work on a different host, talk to the binary-size@chromium.org team.
This plugin requires the buildbucket plugin in order to search builds. Ensure that they are both installed, or prepare to see errors in the browser's console.
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/buildbucket cd buildbucket ln -s src/main/resources/static static # May be unneeded in the future. cd .. git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-binary-size cd chromium-binary-size
Use the script run-with-prod-data.sh
(based on polygerrit-ui/run-server.sh
). You may change some paths by setting environment variables, for example:
GERRIT_DIR="$HOME/gerrit" ./run-with-prod-data.sh
# Install dependencies. npm install -g bower npm install -g web-component-tester bower install wct